	<div class="panel panel-primary">
		<div class="panel-heading">
			<h3 class="panel-title">Sentbox</h3>
		</div>
		<div class="panel-body table-responsive">
		<?php
		if ($kotak!==false)
		{
			echo "<div class='text-center'>";
			echo $halaman;
			echo "</div>";
			
			// generate table
			$tmpl = array ( 'table_open'  => '<table border="0" cellpadding="2" cellspacing="1" class="table table-striped table-condensed">' );

			$this->table->set_template($tmpl); 
			
			$this->table->set_heading('#', 'Tujuan', 'Waktu Dikirim', 'Isi', 'Status','Aksi');

			$i=1;
			foreach ($kotak as $pesan)
				$this->table->add_row(
					$i++,
					$pesan->get_penerima()[0],
					$pesan->get_waktu_dikirim(),
					$pesan->get_pesan_isi()[0],
					$status[$pesan->get_status()],
					"<a class='btn btn-danger' href='".site_url("sms/hapus/sentbox/".$pesan->get_id())."'>Hapus</a>");

			echo $this->table->generate();
		}
		else
		{
			echo $this->lang->line('error_nggak_ketemu');
		}
 		?>
		</div>
	</div>